package cn.jobstart.searchExt;

import cn.jobstart.model.AdminJob;
import cn.jobstart.model.Company;
import cn.jobstart.model.CompanyJob;
import cn.jobstart.search.AdminJobSearch;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;


/**
 * @author sunke
 * @Date 2023-09-06 15:00:20
 * @description AdminJobSearchExt      员工职位
 */
@Data
@Accessors(chain = true)
@ApiModel("员工职位AdminJobSearchExt")
public class AdminJobSearchExt extends AdminJobSearch<AdminJobSearchExt> {


    private String numberCodeEq;
    private String companyJobTitleLike;
    private String companyNameLike;

    @ApiModelProperty(value = "员工ID")
    private String adminIdEq;



    public static AdminJobSearchExt getInstance() {
        return new AdminJobSearchExt();
    }

    public AdminJobSearchExt setNumberCodeEq(String numberCodeEq) {
        this.numberCodeEq = numberCodeEq;
        setEqualField(AdminJob.NUMBER_CODE, numberCodeEq);
        return this;

    }

    public AdminJobSearchExt setCompanyJobTitleLike(String companyJobTitleLike) {
        this.companyJobTitleLike = companyJobTitleLike;
        setLikeField(CompanyJob.TITLE, companyJobTitleLike);
        return this;
    }

    public AdminJobSearchExt setCompanyNameLike(String companyNameLike) {
        this.companyNameLike = companyNameLike;
        setLikeField(Company.NAME, companyNameLike);
        return this;
    }

    @Override
    public AdminJobSearchExt getSubThis() {
        return this;
    }

}

